]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Check for appMenu button's reactivity before opening
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 18 May 2012 14:04:47 +0000 (16:04 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 18 May 2012 15:38:06 +0000 (17:38 +0200)
When the appMenu is not available, for instance when no windows are
open (on the current workspace), we make its actor unreactive to
"hide" it from keynav. However the menu can still be triggered
erroneously when using the corresponding keyboard shortcut, so
add a check for the actor's reactivity there as well.

https://bugzilla.gnome.org/show_bug.cgi?id=676316

js/ui/panel.js

index 329f118fcb7042af1c65c3c45b854399fb32babd..772bc77067ad7ced90d87dcedee36130748c3242 100644 (file)
@@ -1115,8 +1115,8 @@ const Panel = new Lang.Class({
 
     openAppMenu: function() {
         let menu = this._appMenu.menu;
-        if (Main.overview.visible || menu.isOpen)
-          return;
+        if (!this._appMenu.actor.reactive || menu.isOpen)
+            return;
 
         menu.open();
         menu.actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);